import Vue from 'vue';
import Vuex from 'vuex';

import { RootState } from './root.state';

import setting from './setting.store';
import layout from './layout';
import user from './user';

Vue.use(Vuex);

const rootState: RootState = {
  name: 'IOT-MASTER',
  sname: 'IM',
};

export default new Vuex.Store<RootState>({
  state: rootState,
  mutations: {
  },
  actions: {
  },
  modules: {
    setting,
    layout,
    user,
  },
});
